package loja.view.editor.components.frame;

import loja.model.entity.produto.ItemEstoque;
import loja.model.handler.HandlerViewEntity;
import loja.view.editor.components.panel.EntityPanelEditor;
import loja.view.editor.components.panel.ItemEstoquePanelEditor;
import loja.view.editor.components.tablemodel.EntityTableModel;
import loja.view.editor.components.tablemodel.ItemEstoqueTableModel;

public class ItemEstoqueFrameEditor extends
		EntityFrameEditor<ItemEstoque, Long> {

	private static final long serialVersionUID = 1L;

	public ItemEstoqueFrameEditor(
			HandlerViewEntity<ItemEstoque, Long> handlerViewEntity) {
		super(handlerViewEntity);
		labelTitle = "Itens em Estoque";
	}

	@Override
	protected EntityPanelEditor<ItemEstoque, Long> createEntityPanelEditor() {
		return new ItemEstoquePanelEditor(handlerViewEntity);
	}

	@Override
	protected EntityTableModel<ItemEstoque> createTableModel() {
		return new ItemEstoqueTableModel();
	}

}
